//
//  BaseUMAnalytics.m
//  baseVC
//
//  Created by 陶磊 on 2019/12/16.
//  Copyright © 2019 QHT. All rights reserved.
//

#import "UMAnalytics.h"
#import <UMCommon/UMCommon.h>
#import <UMAnalytics/MobClick.h>



@implementation UMAnalytics

+ (void)startUMAnalytics
{
    NSString *mobAppKey = @"5b7e65328f4a9d4236000013";

    //此函数在UMCommon.framework版本1.4.2及以上版本，在UMConfigure.h的头文件中加入。
    //如果用户用组件化SDK,需要升级最新的UMCommon.framework版本。
//    NSString* deviceID =  [UMConfigure deviceIDForIntegration];
//    NSLog(@"集成测试的deviceID:%@",deviceID);
    
    //初始化SDK
    [UMConfigure initWithAppkey:mobAppKey channel:nil];
    
}

+ (void)beginLogPageView:(__unsafe_unretained Class)pageView
{
    [MobClick beginLogPageView:NSStringFromClass(pageView)];
}

+ (void)endLogPageView:(__unsafe_unretained Class)pageView
{
    [MobClick endLogPageView:NSStringFromClass(pageView)];
}



@end
